package hoyo.zqy.org.service;

import hoyo.zqy.org.domain.Shop;
import hoyo.zqy.basic.service.IBaseService;
import hoyo.zqy.org.domain.ShopAuditLog;
import hoyo.zqy.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;
import java.util.prefs.BackingStoreException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqy
 * @since 2022-11-01
 */
public interface IShopService extends IBaseService<Shop> {

    void settlement(Shop shop);

    /**
     * 审核通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;

    /**
     * 审核驳回
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 用户激活
     * @param id
     * @return
     */
    void Active(Long id) ;

    /**
     * 店铺统计
     * @return
     */
    List<ShopDto> echarts();
}
